package com.demo.serviceprovider.constant;

import java.util.HashMap;
import java.util.Map;

public class UserTestInfoConst {
    private static Map<Integer, String> userName = new HashMap<>();
    static {
        userName.put(1, "张三");
        userName.put(2, "李四");
        userName.put(3, "王五");
        userName.put(4, "赵六");
        userName.put(5, "苦瓜");
    }
    /**
     * 通过区域id 获取区域名称
     *
     * @param areaId
     * @return
     */
    public static String getUserNameById(int areaId) {
        String s = userName.get(areaId);
        return s == null ? "" : s;
    }
}
